home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7237 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  886 b 

  1. Path: geraldo.cc.utexas.edu!usenet
  2. From: kmorneau@mail.utexas.edu (Keith Michael Morneau)
  3. Newsgroups: comp.lang.c++
  4. Subject: cin.peek ()
  5. Date: 22 Feb 1996 09:38:45 GMT
  6. Organization: University of Texas at Austin
  7. Message-ID: <4ghdj5$8gi@geraldo.cc.utexas.edu>
  8. NNTP-Posting-Host: slip-40-4.ots.utexas.edu
  9. X-Newsreader: WinVN 0.92.6+
  10.  
  11. I'm writing a small little program with a requirement to use cin.peek ()
  12. for checking a little routine.  My question is, is there a way to reset
  13. the input stream.  I'm checking the input stream for a '\n', and looping
  14. if a separate condition is false.  The stream already has a '\n' in it
  15. upon looping again, so it skips the function.
  16.  
  17. If I'm not making much sense, just ignore this post, please.
  18. --
  19. Keith Michael Morneau
  20. kmorneau@mail.utexas.edu
  21. Voice: (512)708-1469
  22. Fax: (512)708-1468
  23. CEO, ScoTech Productions
  24.   Department of Research and Development
  25.  
  26.